package com.ebt.m.data.rxModel.api;


import com.ebt.m.data.bean.FeedbackQuestion;
import com.ebt.m.data.bean.ProductCompareBean;

import java.util.List;
import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Response;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Url;
import io.reactivex.Observable;

/**
 * Created by Andy.Wang on 2016/3/9.
 */
public interface GetUrlApi {

    @FormUrlEncoded
    @POST("c/mkc")
    Observable<Response<ResponseBody>> getProductsCompareUrl(@Header("Authorization") String authorization, @Field("data") String param);

    @FormUrlEncoded
    @POST("c/list")
    Observable<List<ProductCompareBean>> getProductsCompareReports(@Header("Authorization") String authorization, @Field("aid") int aid, @Field("maxt") String maxt);

    @FormUrlEncoded
    @POST("c/del")
    Observable<Response<ResponseBody>> deleteCompareReports(@Header("Authorization") String authorization, @Field("aid") int aid, @Field("picks") String picks);

    @FormUrlEncoded
    @POST
    Observable<Response<ResponseBody>> gotoFeedback(@Url String url, @Header("Authorization") String authorization, @Field("data") String data);

    @POST
    Observable<List<FeedbackQuestion>> gotoFeedbackTypes(@Url String url, @Header("Authorization") String authorization);

}
